﻿using System.Collections.Generic;
using System.Web;

namespace IntellectShop.Common
{
	public partial class Cart
	{
		#region Public properties

		public int CartID { get; set; }

		public string CartOwnerID { get; set; }

		public List<CartItem> CartItems { get; set; }

		public Cart()
		{
			this.CartItems = new List<CartItem>();
		}

		#endregion Public properties

		public static Cart CreateCart(HttpContextBase context)
		{
			var cart = new Cart();
			cart.CartOwnerID = Globals.GetOwnerID(context);
			return cart;
		}
	}
}
